﻿import flash.display.BitmapData;
import mx.utils.Delegate;
class game.ge9 {
	var ctt, ctt_arr;
	function ge9(scope, ori, AxB, vars:Object) {
		if (scope.constructor != MovieClip) {
			throw ('错 无scope');
		}
		trace('here');
		//AxB.split('*')
		this.ctt = new AS2.html.Table(ori, AxB, 1, 1, '-', Delegate.create(scope, vars.onCreate));
		this.ctt_arr = this.ctt.arr;
	}
	static function getBitmap(bm, mc, id, ori, AxB) {
		var xn:Number = Number(AxB.split('*')[0]);
		var yn:Number = Number(AxB.split('*')[1]);
		var ww = ori._width;
		var hh = ori._height;
		trace('here14');
		mc.attachBitmap(bm, 1);
		trace(-id*ww);
		trace(-id*hh);
		mc._x = -id%xn*ww;
		mc._y = -Math.floor(id/yn)*hh;
	}
}
